package com.xj.demo.classcommand;

public class LoadAndStoreTest {
    public void load(int num,Object obj,long count,boolean flag,short[] arr){
        System.out.println(num);
        System.out.println(obj);
        System.out.println(count);
        System.out.println(flag);
        System.out.println(arr);
    }
    public void pushConstLdc(){
        int i = -1;
        int a = 1;
        int b = 128;
        int c = 127;
        int d = 128;
        int e = 1234567;
    }
    public void constLdc(){
        long a1 = 1;
        long a2 = 2;
        float a3 = 3;
        double a4 = 4;
    }

    public void store(int k,double d){
        int m = k + 2;
        long l = 12;
        String str = "test";
        float f = 10.0F;
        d = 10;
    }

    public int returnInt(){
        int a = 1 + 2;
        return a;
    }

    public Object returnObj(){
        int i = 10;
        Object o = new Object();
        System.out.println(o);
        return o;
    }

    public void foo(long l,float f){
        {
            int i = 0;
        }
        {
            String s = "hello";
        }
        long a = 10 - l;

        if (a > 0) {
            System.out.println(1);
        }
    }
}
